package ajaxjs.data.ext;

import ajaxjs.data.entry.Entry;
import ajaxjs.data.entry.common_fields.Catalog;
import ajaxjs.data.entry.common_fields.Content;
import ajaxjs.data.entry.common_fields.Cover;
import ajaxjs.data.entry.common_fields.Intro;
import ajaxjs.data.entry.type._Number;
import ajaxjs.data.entry.type._String;
import ajaxjs.data.ext.fields.EncodeStatus;
import ajaxjs.data.ext.fields.Filepath;

public class Vod extends Entry{
	public Cover cover = new Cover();
	public Content content = new Content();
	public Catalog catalog = new Catalog();
	public _String intro = new Intro();

	public _String keywords = new _String(){{
		this.label = "关键字";
	}};
	public _Number mediaSize = new _Number(){{
		this.label = "文件大小（KB）";
	}};
	public _Number duration = new _Number(){{
		this.label = "时长（秒）";
	}};
	public _Number playCount = new _Number(){{
		this.label = "播放次数";
	}};
	public _Number accessCount = new _Number(){{
		this.label = "页面访问次数";
	}};
	public Vod(){
		this.content.label = "视频简介";
		this.catalog.label = "栏目";
	}
	public Filepath filepath = new Filepath();
	public EncodeStatus transcodestatus = new EncodeStatus();
	public String joinMeta = "LEFT JOIN video ON video.contentid = vod.id"; // 要用 left join 否则 不能读全
}
